package cn.doitedu.beans;

import java.io.Serializable;

/**
 * @Date 22.4.12
 * @Created by HANGGE
 * @Description
 * 注意  其他程序在使用自定义的Bean的时候  尤其是反射的方式使用 , 底层调用的是GET  SET 方法给属性赋值
 * 没有 SET 方法 没有办法赋值使用
 * 创建对象的时候默认使用空参构造器
 */
public class JavaStudent  implements Serializable {

    private int  id ;
    private  String  name ;
    private  int age ;
    private  String  sex ;
    private  String city ;
    private  double score ;

    public JavaStudent() {

    }

    public JavaStudent(int id, String name, int age, String sex, String city, double score) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.city = city;
        this.score = score;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "JavaStudent{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", city='" + city + '\'' +
                ", score=" + score +
                '}';
    }
}
